import request from './requests.js'
import Cookies from 'js-cookie'
import qs from "qs"
import {
	del_odd_url
} from "./setting.js"

import {
	Toast,
	Notify
} from 'vant'




export function del_odd(odd_id, callBack) {


	request({
		url: del_odd_url,
		method: 'post',
		data: qs.stringify({ //这里是发送给后台的数据
			odd_id: odd_id
		})
	}).then((response) => { //这里使用了ES6的语法
		console.log(response)
		callBack()

	}).catch((error) => {
		// console.log(response)
		console.log(error) //请求失败返回的数据
		Toast('接口请求失败，请联系管理员！')
	})



}


